# ---------- ---------- ---------- ---------- ---------- ----------
#   This makefile organizes projects and helps echo uncommited changes.
#   
#   char \t:'	'
#
#	At this time, the default command prints the git status for all
#	projects in ~/src.
#
#   UserAt, allows us to pass the repo username or not.
#
# ---------- ---------- ---------- ---------- ---------- ----------

UserAt=$(if $(USERIN),$(USERIN)@,'')
Prompt=@echo geimskip says:

target: prerequisites 
prerequisites: prompt

# ---------- ---------- ---------- ---------- ---------- ----------
#NOTE: The remaining recipes follow:
# ---------- ---------- ---------- ---------- ---------- ----------

.PHONY: prompt
prompt:
	$(Prompt)
	@echo "  Run \"make clones\" to clone repos."
	@echo "  Run \"make mirrors\" to add a backup for repos."
	@echo "  Run \"make nomirrors\" to remove backup repos."
	@echo "  Run \"make dev\" to change build config for a dev environment."
	@echo "  Run \"make prod\" to change build config for a prod environment."
	@echo "  Run \"make status\" to echo all git status for repos in src."

	@echo "  View the makefile for more info."

.PHONY: clones
clones:
	@./make/clones.sh $(UserAt)

.PHONY: mirrors
mirrors:
	@./make/mirrors.sh $(UserAt)

.PHONY: nomirrors
nomirrors:
	@./make/remove-mirrors.sh $(UserAt)

.PHONY: dev
dev:
	@./make/change-branches.sh dev

.PHONE: prod
prod:
	@./make/change-branches.sh prod

.PHONY: status
status: 
	@./make/status.sh

